#include <iostream>
#include <cstdlib>
#include <random>
#include <vector>
int main(int argc, char *argv[])
{
    int n = -1;
    if (argc != 2)
	n = 1;
    else
	n = std::atoi(argv[1]);
    std::vector<double> arr(n);
    std::default_random_engine generator;
    std::uniform_real_distribution<double> dist(0.0, 1.0);
    for (std::vector<double>::iterator arr_iterator = arr.begin();
	 arr_iterator!=arr.end();
	 ++arr_iterator)
	*arr_iterator=dist(generator);
    std::cout<<n<<" ";
    for (std::vector<double>::iterator arr_iterator=arr.begin();
	 arr_iterator!=arr.end();
	 ++arr_iterator)
	std::cout<<*arr_iterator<<" ";
    std::cout<<std::endl;
    return 0;
};
